package com.example.helloSpringBoot.controller;

import com.example.helloSpringBoot.entity.User;
import com.example.helloSpringBoot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("erp/baseregion/")
public class UserController {

    @Autowired
     private  UserService userService;

    @RequestMapping("pojo")
    public List<User> showUer(){
        List<User> list = userService.findAll();
        return list;
    }

}
